const tokenKey = 'head-line-token'
// 存储
const saveToken = tokenObj => {
  localStorage.setItem(tokenKey, JSON.stringify(tokenObj))
}
// 删除
const removeToken = () => {
  localStorage.removeItem(tokenKey)
}
// 获取
const getToken = () => {
  return JSON.parse(localStorage.getItem(tokenKey))
}
// 暴露
export { saveToken, removeToken, getToken }
